﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<% List<GetSalesPartnerResult> listLeft = (List<GetSalesPartnerResult>)ViewData["HotSalesPartner"];
   for (int i = 0; i < 3; i++)
   {
       GetSalesPartnerResult item = listLeft[i];%>
    <div class="center pasales">
    <p class="photsales">
        <a class="product-title" href="<%=FRouter._("sanpham",item.ID.ToString(),item.PartnerName) %>">
          <span class="pnname"><%=HttpUtility.HtmlEncode(item.PartnerName) %></span></a>
    </p>
    <a href="<%=FRouter._("sanpham",item.ID.ToString(),item.PartnerName) %>">
        <img class="imag" src="<%=Constants.UPLOAD_VITUAL_IMAGE_PATH + item.Logo%>" width="132"
            height="120" /></a>
    <p class="center cprice">
        <%=(item.CurrentPrice.HasValue ? String.Format("{0:0,0} đ", item.CurrentPrice.Value):"Liên hệ")%>
    </p>
    <p class="center oldprice">
        <%=(item.OldPrice.HasValue ?String.Format("{0:0,0} đ", item.OldPrice.Value): "Liên hệ")%>
    </p>
</div>
  <% }
     %>